package com.snail.auth.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @description
 * @date 2021/7/13
 * @autor houyanfeng
 */
@Data
@Entity
@Table(name = "persistent_logins")
public class PersistentLogins implements Serializable {

    @Column(length = 20)
    private String username;
    @Column(length = 50)
    private String series;
    @Id
    @Column(length = 80)
    private String token;
    @Column(length = 30)
    private String lastUsed;
}
